import { httpGet, httpPost, httpRequest} from '../http'

export function getCarouselList(pageNow, pageSize){
    //交给页面层处理promise
    return httpGet({ url: `mallCarousel/${pageNow}/${pageSize}`})
}

export function addCarousel(data){
    //交给页面层处理promise
    return httpPost({ url: 'mallCarousel/addMallCarousel', data })
}


// 逻辑删除（更新录播图的is_datele属性）
export function logicalDeleteCarousel(data) {
    //交给页面层处理promise
    return httpRequest({
         url: 'mallCarousel/logicalDeleteCarousel', 
         data, 
         method: 'put' 
    })
}

// 多条数据逻辑删除
export function logicalDeleteListCarousel(data) {
    //交给页面层处理promise
    return httpRequest({ 
        url: 'mallCarousel/updateListMallCarouselById', 
        data, 
        method: 'put' 
    })
}

// // 上传图片
// export function upload(picture){
//     //交给页面层处理promise
//     return httpPost({ url: `upload/${picture}`})
// }